import React from "react"
import { Route, Routes, Navigate } from "react-router-dom"
import Profile from "./Profile"
import Avator from "./Avator"
function Setting() {
    return (
        <div>
            <h1>Setting组件</h1>
            <div style={{ background: "blue" }}>
                <Routes>
                    <Route path="*" element={<Navigate to="profile" />}></Route>
                    <Route path="profile" element={<Profile />}></Route>
                    <Route path="avator" element={<Avator />}></Route>
                </Routes>
            </div>
        </div>
    )
}

export default Setting
